package com.ruoyi.inventory.mapper;

import java.util.List;
import com.ruoyi.inventory.domain.Inventory;

/**
 * 药品库存Mapper接口
 * 
 * @author wyj
 * @date 2025-02-25
 */
public interface InventoryMapper 
{
    /**
     * 查询药品库存
     * 
     * @param inventoryId 药品库存主键
     * @return 药品库存
     */
    public Inventory selectInventoryByInventoryId(Long inventoryId);

    /**
     * 查询药品库存列表
     * 
     * @param inventory 药品库存
     * @return 药品库存集合
     */
    public List<Inventory> selectInventoryList(Inventory inventory);

    /**
     * 新增药品库存
     *
     * @param inventory 药品库存
     * @return 结果
     */
    public int insertInventory(Inventory inventory);


    /**
     * 修改药品库存
     * 
     * @param inventory 药品库存
     * @return 结果
     */
    public int updateInventory(Inventory inventory);

    /**
     * 删除药品库存
     * 
     * @param inventoryId 药品库存主键
     * @return 结果
     */
    public int deleteInventoryByInventoryId(Long inventoryId);

    /**
     * 批量删除药品库存
     * 
     * @param inventoryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteInventoryByInventoryIds(Long[] inventoryIds);
}
